package com.noahplat.person.feign;

import com.noahplat.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @InterfaceName: PersonFeign
 * @Description: 人员资料对外feign
 * @Author 宋彦磊
 * @Date 2021/3/25
 * @Version 1.0
 */

@FeignClient(name = "person",contextId = "personInfoFeign")
public interface PersonInfoFeign {

    //查询人员资料对外feign接口
    @GetMapping("/api/personInfo/getPersonInfo")
    public Result getPersonInfo(@RequestParam("pid") Long pid);

}
